	<?php if( !have_posts() ): ?>
	<div id="post-0" class="post error404 not-found">
		<h1 class="entry-title"><?php _e('No Result Found', 'igoogler');?></h1>
		<div class="entry-content">
			<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'igoogler' ); ?></p>
		</div>
	</div>
	<?php endif;?>
	<?php while( have_posts() ): the_post();?>
	<div id="post-<?php the_ID();?>" <?php post_class(); ?>>
		<h1 class="entry-title"><?php the_title();?><?php igoogler_plusone("standard", "none");?></h1>
		<div class="entry-content">
			<?php the_content();?>
			<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:' ), 'after' => '</div>' ) ); ?>
		</div>
		<?php if(igoogler_option("single_copyright")):?>
		<div class="post-copyright"><div class="post-author"><a href="https://plus.google.com/<?php echo igoogler_option('google_plus_id');?>?rel=author"><img src="<?php echo 'http://www.gravatar.com/avatar/'.md5(get_the_author_meta('user_email')).'?s=80'; ?>" width="80" height="80" /></a></div>
			<div class="post-licence">
				<?php if(igoogler_option("copyright_content")==''):?>
				<?php _e('<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" /></a><br />This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.', 'igoogler');?>
				<?php else: echo stripslashes(igoogler_option("copyright_content"));endif;?>
			</div>
			<strong> <?php _e('Permalink:', 'igoogler');?>
			</strong><span class="post-permalink"> <?php the_permalink();?>
			</span> <br /> <strong> <?php _e('Tags:', 'igoogler'); ?>
			</strong><span class="post-tags"> <?php the_tags('',', ','');?>
			</span>
			<div class="clear"></div>
		</div>
		<?php endif;?>
		<div id="sidebar_bottom">
			<?php if(!dynamic_sidebar('bottom')): ?>
			<span> <?php _e('Latest Post', 'igoogler');?>
			</span>
			<ul>
				<?php echo get_latest_posts_igoogler(5); ?>
			</ul>
			<span> <?php _e('Related Post', 'igoogler');?>
			</span>
			<ul>
				<?php echo wp_get_related_posts_igoogler(5); ?>
			</ul>
			<span> <?php _e('Random Post', 'igoogler');?>
			</span>
			<ul>
				<?php echo get_random_posts_igoogler(5); ?>
			</ul>
			<?php endif;?>
			<div id="single_bottom_ad">
				<?php echo stripslashes(igoogler_option("bottom_ad"));?>
			</div>
			<div class="clear"></div>
		</div>
		<div class="post-nav">
			<span class="lf"> <?php previous_post_link(); ?>
			</span><span class="rf"> <?php next_post_link(); ?>
			</span>
		</div>
	</div>
	<!--end post-->
	<div class="clear"></div>
	<?php comments_template('',true);?>
	<?php endwhile;?>